package com.ruoyi.project.channel.vwBusinessCashStat.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.channel.vwBusinessCashStat.mapper.VwBusinessCashStatMapper;
import com.ruoyi.project.channel.vwBusinessCashStat.domain.VwBusinessCashStat;
import com.ruoyi.project.channel.vwBusinessCashStat.service.IVwBusinessCashStatService;
import com.ruoyi.common.utils.text.Convert;

/**
 * VIEW 服务层实现
 * 
 * @author zero
 * @date 2019-05-06
 */
@Service
public class VwBusinessCashStatServiceImpl implements IVwBusinessCashStatService 
{
	@Autowired
	private VwBusinessCashStatMapper vwBusinessCashStatMapper;

	/**
     * 查询VIEW信息
     * 
     * @param businessId VIEWID
     * @return VIEW信息
     */
    @Override
	public VwBusinessCashStat selectVwBusinessCashStatById(Long businessId)
	{
	    return vwBusinessCashStatMapper.selectVwBusinessCashStatById(businessId);
	}
	
	/**
     * 查询VIEW列表
     * 
     * @param vwBusinessCashStat VIEW信息
     * @return VIEW集合
     */
	@Override
	public List<VwBusinessCashStat> selectVwBusinessCashStatList(VwBusinessCashStat vwBusinessCashStat)
	{
	    return vwBusinessCashStatMapper.selectVwBusinessCashStatList(vwBusinessCashStat);
	}
	
    /**
     * 新增VIEW
     * 
     * @param vwBusinessCashStat VIEW信息
     * @return 结果
     */
	@Override
	public int insertVwBusinessCashStat(VwBusinessCashStat vwBusinessCashStat)
	{
	    return vwBusinessCashStatMapper.insertVwBusinessCashStat(vwBusinessCashStat);
	}
	
	/**
     * 修改VIEW
     * 
     * @param vwBusinessCashStat VIEW信息
     * @return 结果
     */
	@Override
	public int updateVwBusinessCashStat(VwBusinessCashStat vwBusinessCashStat)
	{
	    return vwBusinessCashStatMapper.updateVwBusinessCashStat(vwBusinessCashStat);
	}

	/**
     * 删除VIEW对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteVwBusinessCashStatByIds(String ids)
	{
		return vwBusinessCashStatMapper.deleteVwBusinessCashStatByIds(Convert.toStrArray(ids));
	}
	
}
